/*
 * Generated by XDoclet - Do not edit!
 */
package hotel.interfaces;

/**
 * Primary key for Habitacio.
 * @xdoclet-generated at ${TODAY}
 * @copyright The XDoclet Team
 * @author XDoclet
 * @version ${version}
 */
public class HabitacioPK
   extends java.lang.Object
   implements java.io.Serializable
{

   public java.lang.Integer ID;

   public HabitacioPK()
   {
   }

   public HabitacioPK( java.lang.Integer ID )
   {
      this.ID = ID;
   }

   public java.lang.Integer getID()
   {
      return ID;
   }

   public void setID(java.lang.Integer ID)
   {
      this.ID = ID;
   }

   public int hashCode()
   {
      int _hashCode = 0;
         if (this.ID != null) _hashCode += this.ID.hashCode();

      return _hashCode;
   }

   public boolean equals(Object obj)
   {
      if( !(obj instanceof hotel.interfaces.HabitacioPK) )
         return false;

      hotel.interfaces.HabitacioPK pk = (hotel.interfaces.HabitacioPK)obj;
      boolean eq = true;

      if( obj == null )
      {
         eq = false;
      }
      else
      {
         if( this.ID != null )
         {
            eq = eq && this.ID.equals( pk.getID() );
         }
         else  // this.ID == null
         {
            eq = eq && ( pk.getID() == null );
         }
      }

      return eq;
   }

   /** @return String representation of this pk in the form of [.field1.field2.field3]. */
   public String toString()
   {
      StringBuffer toStringValue = new StringBuffer("[.");
         toStringValue.append(this.ID).append('.');
      toStringValue.append(']');
      return toStringValue.toString();
   }

}
